package choices;

/**
 * Created by DELL
 * Date: 2019/9/29.
 * Time: 14:04
 */
public class FirstChoice implements IChoice {
    @Override
    public void myChoice(String s1, String s2) {
        System.out.println("You wanted to add the numbers.");
        int int1, int2, sum;

        int1 = Integer.parseInt(s1);
        int2 = Integer.parseInt(s2);
        sum = int1 + int2;
        System.out.println("The result of the addition is :" + sum);
        System.out.println("***End of the Strategy***");

    }
}
